package com.actionscriptclass.state
{
	 import com.actionscriptclass.timer.TimerInvoker;

	public class Stop implements IState
	{
		private var _state:SetState;
	    private var _timer:TimerInvoker;
	    
		public function Stop( state:SetState,timer:TimerInvoker)
		{
			_state=state;	
		    _timer=timer;
	 	}
		
        public function start():void
		{
           _state.setState(_state.getStart());  
           _state.setDataToTimer()
           _timer.start();
       
        }
		
		public function stop():void
		{
		 //do nothing
		}
		
		public function loop(loopNumber:uint=1):void
		{
		   _state.setState(_state.getLoop());
           _timer.loop(loopNumber);
           _state.setDataToTimer()
    	}
		
	   public function pause():void
		{
			//do nothing
		}
	}
}